package com.lagou.model;

import java.io.Serializable;

public class Student implements Serializable {
    private static final long serialVersionUID = 5037058081763417858L;
    private int id;
    private String stuName;
    private String stuPassword;

    public Student() {
    }

    /*public Student(String stuName, String stuPassword) {
        this.stuName = stuName;
        this.stuPassword = stuPassword;
    }*/

    public Student(int id, String stuPassword) {
        this.id = id;
        this.stuPassword = stuPassword;
    }

    public Student(int id, String stuName, String stuPassword) {
        this.id = id;
        this.stuName = stuName;
        this.stuPassword = stuPassword;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuPassword() {
        return stuPassword;
    }

    public void setStuPassword(String stuPassword) {
        this.stuPassword = stuPassword;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", stuName='" + stuName + '\'' +
                ", stuPassword='" + stuPassword + '\'' +
                '}';
    }
}
